<template>
  <div>
    <RouterLink to="/">Home</RouterLink>
    <RouterLink to="/about">About</RouterLink>
  </div>
  <hr />
  <RouterView />
</template>

<script>
import { defineComponent } from 'vue'
import HelloWorld from './components/HelloWorld.vue'

// 使用 defineComponent 定义组件，它可以让里面的配置选项有提示
export default defineComponent({
  components: {
    HelloWorld
  }
})
</script>

<style lang="scss" scoped></style>
